{% extends "hottywood/base.html" %}
{% comment %}
<!--
  Copyright (C) 2008 ZHENG Zhong <http://www.zhengzhong.net/>
  
  Created on 2009-04-29.
  $Id$
-->
{% endcomment %}

{#________________________________________________________________________________________________#}

{% block html_head %}

<title>{{hot_user.nickname|escape}} :: Hottywood</title>
<link rel="stylesheet" type="text/css" media="screen,print" href="{{static_}}/css/ajax.css"/>
<link rel="stylesheet" type="text/css" media="screen,print" href="{{static_}}/css/form.css"/>
<link rel="stylesheet" type="text/css" media="screen,print" href="{{static_}}/css/tabs.css"/>
<link rel="stylesheet" type="text/css" media="screen,print" href="{{static_}}/css/user.css"/>
<link rel="stylesheet" type="text/css" media="screen,print" href="{{static_}}/css/movie_list.css"/>

{% include "hottywood/ajax/ajax_js.html" %}

<script type="text/javascript">//<![CDATA[

  function switchTab(tabsId, panelId) {
    // Highlight the selected toggle link.
    $(tabsId + " .tab_toggles > a").each( function(i) {
      var toggle = $(this);
      if (toggle.attr("href") == panelId) {
        toggle.addClass("selected");
      } else if (toggle.hasClass("selected")) {
        toggle.removeClass("selected");
      }
    } );
    // Hide all tab panels except the selected one.
    $(tabsId + " .tab_panels > *").addClass("hidden");
    $(tabsId + " " + panelId).removeClass("hidden");
    // Return false to suppress default behavior.
    return false;
  }

//]]></script>

{% endblock %}{# html_head #}

{#________________________________________________________________________________________________#}

{% block navbar %}

Users &#187; <b>{{hot_user.nickname|escape}}</b>

{% endblock %}

{#________________________________________________________________________________________________#}

{% block content %}

<div id="user">

  <!-- user profile _____________________________________________________________________________-->
  
  {% include "hottywood/ajax/user_profile.html" %}

  <!-- movies added _____________________________________________________________________________-->
  
  {% if movies_added %}
  
    <div class="contrib">
      <div class="contrib_head">Hot movies that {{hot_user.nickname|escape}} added recently:</div>
      <div class="contrib_body">
        {% with movies_added as movies %}
          {% include "hottywood/include/movie_list.html" %}
        {% endwith %}
      </div>
    </div><!--/.contrib-->
  
  {% endif %}
  
  <!-- scenes added _____________________________________________________________________________-->
  
  {% if scenes_added %}
  
    <div class="contrib">
      <div class="contrib_head">Hot scenes that {{hot_user.nickname|escape}} added recently:</div>
      <div class="contrib_body">
        {% with scenes_added as scenes %}
          {% include "hottywood/include/scene_list.html" %}
        {% endwith %}
      </div>
    </div><!--/.contrib-->
  
  {% endif %}
  
  <!-- scenes confirmed _________________________________________________________________________-->
  
  {% if scenes_confirmed %}
  
    <div class="contrib">
      <div class="contrib_head">Some hot scenes that {{hot_user.nickname|escape}} confirmed:</div>
      <div class="contrib_body">
        {% with scenes_confirmed as scenes %}
          {% include "hottywood/include/scene_list.html" %}
        {% endwith %}
      </div>
    </div><!--/.contrib-->
  
  {% endif %}
  
  <!-- scenes disproved _________________________________________________________________________-->
  
  {% if scenes_disproved %}
  
    <div class="contrib">
      <div class="contrib_head">Some (hot) scenes that {{hot_user.nickname|escape}} disproved:</div>
      <div class="contrib_body">
        {% with scenes_disproved as scenes %}
          {% include "hottywood/include/scene_list.html" %}
        {% endwith %}
      </div>
    </div><!--/.contrib-->
  
  {% endif %}

</div><!--/#user-->


{% endblock %}{# content #}


